<?php

namespace app\api\validate;

use think\Validate;

class Companys extends Validate
{
    protected $rule =   [
        'name'  => 'require|unique:companys,name',
        'tel' => 'require',
        'addr' => 'require',
    ];

    protected $message = [
        'name.require'=>'缺少名称',
        'name.unique'=>'该企业名称已经被占用,请尝试更换名称',
        'tel.require'=>'缺少联系电话',
        'addr.require'=>'缺少地址',
    ];

}
